package com.hainiu.cat.web.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * create by biji.zhao on 2021/6/4
 */
@Component
//@RabbitListener(queues = "TestDirectQueue")
public class DirectReceiver {

    @RabbitHandler
    public void process(String testMessage) {
        System.out.println("=========================");
        System.out.println("=========================" + testMessage + "=========================");
        System.out.println("=========================");
    }
}
